//设置初始化状态----
var initialState={
    news:[]
}

//
function news(state=initialState,action){
    switch(action.type){
        case "GETNEWS":
            return Object.assign({},state,{news:action.data});
        default:
            return state;
    }
}

export default news;